package com.microcity.mvvmframe.mvvm.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.gyf.barlibrary.ImmersionBar;
import com.microcity.mvvmframe.R;

public class Test2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
//        overridePendingTransition(R.anim.push_bottom_in, R.anim.push_bottom_out);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test2);
        ImmersionBar.with(this)
                .statusBarColor(R.color.alpha7f_white)
                .statusBarDarkFont(true)
                .fitsSystemWindows(true)
                .init(); //使用该属性必须指定状态栏的颜色，不然状态栏透明，很难看init();
    }

    @Override
    public void finish() {
        super.finish();
//        overridePendingTransition(R.anim.push_bottom_in, R.anim.push_bottom_out);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ImmersionBar.with(this).destroy();
    }

}
